/**
 * 此文件用来封装存储 登录接口返回的 token
 */

const key = 'token-sph'
// 存
export const saveToken = (token) => {
  localStorage.setItem(key, token)
}
// 取
export const getToken = () => {
  return localStorage.getItem(key)
}
// 清除
export const removeToken = () => {
  localStorage.removeItem(key)
}
